projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e56179
)
Don't mess with any events on the root window.
author
Alexander Larsson
<alexl@redhat.com>
Wed, 28 Jan 2009 12:41:12 +0000
(13:41 +0100)
committer
Alexander Larsson
<alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:29 +0000
(10:15 +0200)
This causes all sorts of weirdness with pointer_over_window
being the rootwindow and then crashing gdk_window_get_toplevel() later.
With this metacity stops crashing madly.
gdk/gdkwindow.c
patch
|
blob
|
history
diff --git
a/gdk/gdkwindow.c
b/gdk/gdkwindow.c
index b3521504d6d07877774fec0cb8cbfa3ca49bd3f2..36cb4ef5bb6aa8da81edc16aab00d9a7c5fc08e0 100644
(file)
--- a/
gdk/gdkwindow.c
+++ b/
gdk/gdkwindow.c
@@
-8486,7
+8486,8
@@
_gdk_windowing_got_event (GdkDisplay *display,
#endif
if (!(is_button_type (event->type) ||
- is_motion_type (event->type)))
+ is_motion_type (event->type)) ||
+ GDK_WINDOW_TYPE (event_private) == GDK_WINDOW_ROOT)
return;
if (event_private->parent != NULL &&